package com.example.accountingapp;

import android.annotation.SuppressLint;
import android.content.Intent;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import androidx.appcompat.app.AppCompatActivity;

public class IncomeActivity extends AppCompatActivity {

    private Button btnOpenOtherIncome, btnOpenSalaryIncome, btnOpenTotalIncome,btnOpenRecordTime;

    @SuppressLint("MissingInflatedId")
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_main123);

        btnOpenOtherIncome = findViewById(R.id.btnOpenOtherIncome);
        btnOpenSalaryIncome = findViewById(R.id.btnOpenSalaryIncome);
        btnOpenTotalIncome = findViewById(R.id.btnOpenTotalIncome);
        btnOpenRecordTime = findViewById(R.id.btnOpenRecordTime);
        btnOpenOtherIncome.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(IncomeActivity.this, OtherIncomeActivity.class);
                startActivity(intent);
            }
        });

        btnOpenSalaryIncome.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(IncomeActivity.this, SalaryIncomeActivity.class);
                startActivity(intent);
            }
        });

        btnOpenTotalIncome.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(IncomeActivity.this, TotalIncomeActivity.class);
                startActivity(intent);
            }
        });
        btnOpenRecordTime.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View v) {
                Intent intent = new Intent(IncomeActivity.this, RecordTimeActivity.class);
                startActivity(intent);
            }
        });
    }
}
